diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_status_post[None-private].yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_status_post[None-private].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[None-private].yaml | 169 |
1 files changed, 122 insertions, 47 deletions
diff --git a/tests/cassettes/test_status_post[None-private].yaml b/tests/cassettes/test_status_post[None-private].yaml index 73683f6..e050c8b 100644 --- a/tests/cassettes/test_status_post[None-private].yaml +++ b/tests/cassettes/test_status_post[None-private].yaml | |||
@@ -1,61 +1,136 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: visibility=private&status=Toot%21 | 3 | body: status=Toot%21&visibility=private |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | Content-Length: ['33'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
11 | User-Agent: [python-requests/2.18.4] | 11 | Connection: |
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '33' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 21 | response: |
15 | body: {string: '{"id":"103704152006787088","created_at":"2020-02-22T19:29:40.392Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704152006787088","url":"http://localhost/@mastodonpy_test/103704152006787088","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","reblog":null,"application":{"name":"Mastodon.py | 22 | body: |
16 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 23 | string: '{"id":"109304277066244698","created_at":"2022-11-07T19:55:07.384Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277066244698","url":"http://localhost:3000/@mastodonpy_test/109304277066244698","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
24 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
26 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":7,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
17 | headers: | 27 | headers: |
18 | Cache-Control: ['no-cache, no-store'] | 28 | Cache-Control: |
19 | Content-Type: [application/json; charset=utf-8] | 29 | - no-store |
20 | Referrer-Policy: [strict-origin-when-cross-origin] | 30 | Content-Security-Policy: |
21 | Transfer-Encoding: [chunked] | 31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
22 | Vary: ['Accept-Encoding, Origin'] | 32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
23 | X-Content-Type-Options: [nosniff] | 33 | style-src ''self'' http://localhost:3000 ''nonce-LHz5CD2L3m5eilLNef9pyw==''; |
24 | X-Download-Options: [noopen] | 34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
25 | X-Frame-Options: [SAMEORIGIN] | 35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
26 | X-Permitted-Cross-Domain-Policies: [none] | 36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
27 | X-Request-Id: [44dde196-9527-4b7d-9a35-cdbbda276e11] | 37 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
28 | X-Runtime: ['0.176334'] | 38 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
29 | X-XSS-Protection: [1; mode=block] | 39 | worker-src ''self'' blob: http://localhost:3000' |
30 | content-length: ['1306'] | 40 | Content-Type: |
31 | status: {code: 200, message: OK} | 41 | - application/json; charset=utf-8 |
42 | ETag: | ||
43 | - W/"707f2bd4cee672e40ea4273b5c4dba9b" | ||
44 | Referrer-Policy: | ||
45 | - strict-origin-when-cross-origin | ||
46 | Transfer-Encoding: | ||
47 | - chunked | ||
48 | Vary: | ||
49 | - Accept, Origin | ||
50 | X-Content-Type-Options: | ||
51 | - nosniff | ||
52 | X-Download-Options: | ||
53 | - noopen | ||
54 | X-Frame-Options: | ||
55 | - SAMEORIGIN | ||
56 | X-Permitted-Cross-Domain-Policies: | ||
57 | - none | ||
58 | X-RateLimit-Limit: | ||
59 | - '300' | ||
60 | X-RateLimit-Remaining: | ||
61 | - '213' | ||
62 | X-RateLimit-Reset: | ||
63 | - '2022-11-07T21:00:00.405533Z' | ||
64 | X-Request-Id: | ||
65 | - 068c6de5-83c4-406d-89d6-4b070df7c70b | ||
66 | X-Runtime: | ||
67 | - '0.035641' | ||
68 | X-XSS-Protection: | ||
69 | - 1; mode=block | ||
70 | status: | ||
71 | code: 200 | ||
72 | message: OK | ||
32 | - request: | 73 | - request: |
33 | body: null | 74 | body: null |
34 | headers: | 75 | headers: |
35 | Accept: ['*/*'] | 76 | Accept: |
36 | Accept-Encoding: ['gzip, deflate'] | 77 | - '*/*' |
37 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 78 | Accept-Encoding: |
38 | Connection: [keep-alive] | 79 | - gzip, deflate |
39 | Content-Length: ['0'] | 80 | Authorization: |
40 | User-Agent: [python-requests/2.18.4] | 81 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
82 | Connection: | ||
83 | - keep-alive | ||
84 | Content-Length: | ||
85 | - '0' | ||
86 | User-Agent: | ||
87 | - tests/v311 | ||
41 | method: DELETE | 88 | method: DELETE |
42 | uri: http://localhost:3000/api/v1/statuses/103704152006787088 | 89 | uri: http://localhost:3000/api/v1/statuses/109304277066244698 |
43 | response: | 90 | response: |
44 | body: {string: '{"id":"103704152006787088","created_at":"2020-02-22T19:29:40.392Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost/users/mastodonpy_test/statuses/103704152006787088","url":"http://localhost/@mastodonpy_test/103704152006787088","replies_count":0,"reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"text":"Toot!","reblog":null,"application":{"name":"Mastodon.py | 91 | body: |
45 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":false,"bot":false,"discoverable":false,"group":false,"created_at":"2020-02-22T20:26:54.402Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@mastodonpy_test","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2020-02-22","emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'} | 92 | string: '{"id":"109304277066244698","created_at":"2022-11-07T19:55:07.384Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"private","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304277066244698","url":"http://localhost:3000/@mastodonpy_test/109304277066244698","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
93 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
94 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
95 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | ||
46 | headers: | 96 | headers: |
47 | Cache-Control: ['no-cache, no-store'] | 97 | Cache-Control: |
48 | Content-Type: [application/json; charset=utf-8] | 98 | - no-store |
49 | Referrer-Policy: [strict-origin-when-cross-origin] | 99 | Content-Security-Policy: |
50 | Transfer-Encoding: [chunked] | 100 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
51 | Vary: ['Accept-Encoding, Origin'] | 101 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
52 | X-Content-Type-Options: [nosniff] | 102 | style-src ''self'' http://localhost:3000 ''nonce-Y87ZDc+n1BZjdKFhxGXRgQ==''; |
53 | X-Download-Options: [noopen] | 103 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
54 | X-Frame-Options: [SAMEORIGIN] | 104 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
55 | X-Permitted-Cross-Domain-Policies: [none] | 105 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
56 | X-Request-Id: [3be0d8c8-ad73-4a47-8e78-d5ade0bcc6f6] | 106 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
57 | X-Runtime: ['0.170602'] | 107 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
58 | X-XSS-Protection: [1; mode=block] | 108 | worker-src ''self'' blob: http://localhost:3000' |
59 | content-length: ['1276'] | 109 | Content-Type: |
60 | status: {code: 200, message: OK} | 110 | - application/json; charset=utf-8 |
111 | ETag: | ||
112 | - W/"aafd2411f5291d2d8297eaac4d1e327a" | ||
113 | Referrer-Policy: | ||
114 | - strict-origin-when-cross-origin | ||
115 | Transfer-Encoding: | ||
116 | - chunked | ||
117 | Vary: | ||
118 | - Accept, Origin | ||
119 | X-Content-Type-Options: | ||
120 | - nosniff | ||
121 | X-Download-Options: | ||
122 | - noopen | ||
123 | X-Frame-Options: | ||
124 | - SAMEORIGIN | ||
125 | X-Permitted-Cross-Domain-Policies: | ||
126 | - none | ||
127 | X-Request-Id: | ||
128 | - 4c150c85-bc20-41c3-94ab-73dd7095cd2a | ||
129 | X-Runtime: | ||
130 | - '0.034079' | ||
131 | X-XSS-Protection: | ||
132 | - 1; mode=block | ||
133 | status: | ||
134 | code: 200 | ||
135 | message: OK | ||
61 | version: 1 | 136 | version: 1 |